package com.htfc786.reminder.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName reminder_log
 */
@TableName(value = "reminder_log")
@Data
public class ReminderLog implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 家庭id
     */
    private Long familyId;

    /**
     * 类型(吃药/存低)
     */
    private String type;

    /**
     * 药品id
     */
    private Long medicineId;

    /**
     * 用药id
     */
    private Long usageId;

    /**
     * 是否已读
     */
    private Boolean isRead;

    /**
     * 时间
     */
    private Date time;

    /**
     * 用户id
     */
    private Long userId;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}